package a.j;

import a.c.e;
import a.c.j;
import a.c.k;
import a.c.q;

import javax.swing.*;
import java.awt.*;

public class r
  extends n
  implements md.t_
{
  public static final j f = new j()
  {
    public int getInt(Object paramAnonymousObject)
    {
      return 0;
    }
    
    public double getDouble(Object paramAnonymousObject)
    {
      return 0.0D;
    }
    
    public boolean getBool(Object paramAnonymousObject)
    {
      return false;
    }
    
    public void a(Object paramAnonymousObject, double paramAnonymousDouble) {}
    
    public void a(Object paramAnonymousObject, int paramAnonymousInt) {}
    
    public void a(Object paramAnonymousObject, boolean paramAnonymousBoolean) {}
    
    public Object get(Object paramAnonymousObject)
    {
      boolean bool = ld.E;
      if ((bool) || ((paramAnonymousObject instanceof e)))
      {
        q localq = ((e)paramAnonymousObject).g();
        if ((bool) || ((localq instanceof g)))
        {
          ld localld = ((g)localq).w((e)paramAnonymousObject);
          if ((bool) || ((localld instanceof md))) {
            return ((md)localld).l();
          }
        }
      }
      return null;
    }
    
    public void a(Object paramAnonymousObject1, Object paramAnonymousObject2)
    {
      boolean bool = ld.E;
      if ((bool) || ((paramAnonymousObject1 instanceof e)))
      {
        q localq = ((e)paramAnonymousObject1).g();
        if ((bool) || ((localq instanceof g)))
        {
          ld localld = ((g)localq).w((e)paramAnonymousObject1);
          if ((bool) || ((localld instanceof md))) {
            ((md)localld).b(paramAnonymousObject2);
          }
        }
      }
    }
  };
  private k g;
  private id h;
  private final JComponent i = new JComponent()
  {
    public boolean isValidateRoot()
    {
      return true;
    }
  };
  public static int j;
  
  public r(id paramid, k paramk)
  {
    this.h = paramid;
    this.g = paramk;
  }
  
  public id a()
  {
    return this.h;
  }
  
  public k b()
  {
    return this.g;
  }
  
  public void b(ld paramld, Graphics2D paramGraphics2D)
  {
    boolean bool2 = ld.E;
    boolean bool1 = j(paramld, paramGraphics2D);
    Color localColor1 = d(paramld, bool1);
    if (!bool2) {
      if (localColor1 != null)
      {
        paramGraphics2D.setColor(localColor1);
        paramGraphics2D.fillRect((int)paramld.a(), (int)paramld.b(), (int)paramld.c(), (int)paramld.d());
      }
    }
    Color localColor2 = a(paramld, bool1);
    if (!bool2)
    {
      if (localColor2 != null) {
        paramGraphics2D.setColor(localColor2);
      }
    }
    else {
      paramGraphics2D.drawRect((int)paramld.a(), (int)paramld.b(), (int)paramld.c(), (int)paramld.d());
    }
  }
  
  protected Component a(pg parampg, ld paramld, boolean paramBoolean)
  {
    return this.h.getNodeCellRendererComponent(parampg, paramld, this.g.get(paramld.n()), paramBoolean);
  }
  
  protected void a(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool3 = ld.E;
    boolean bool2 = ld.D;
    if ((bool3) || (!paramBoolean))
    {
      if ((bool3) || ((paramld.d() < 1.0D) || (paramld.c() < 1.0D))) {
        return;
      }
      pg localpg = null;
      pc localpc = kg.a(paramGraphics2D);
      Object localObject1;
      if ((bool3) || (localpc != null))
      {
        localObject1 = localpc.b();
        if (!bool2) {}
      }
      else if (((bool3) || (paramld.n() != null)) && ((bool3) || (paramld.n().g() != null)))
      {
        localObject1 = ((g)paramld.n().g()).fb();
        if (!bool2) {}
      }
      else
      {
        localObject1 = null;
      }
      JComponent localJComponent = null;
      if (((bool3) || (localObject1 != null)) && ((bool3) || ((localObject1 instanceof pg))))
      {
        localJComponent = ((pg)localObject1).B();
        localpg = (pg)localObject1;
      }
      if (localpg != null) {
        synchronized (this)
        {
          boolean bool1 = j(paramld, paramGraphics2D);
          Component localComponent = a(localpg, paramld, bool1);
          if (((bool3) || (localComponent != null)) && ((localComponent instanceof JComponent)))
          {
            double d1 = paramld.a();
            double d2 = paramld.b();
            a((JComponent)localComponent);
            localJComponent.add(this.i);
            this.i.add(localComponent);
            paramGraphics2D.translate(d1, d2);
            try
            {
              localComponent.setBounds(0, 0, (int)paramld.c(), (int)paramld.d());
              localComponent.validate();
              localComponent.paint(paramGraphics2D);
            }
            finally
            {
              paramGraphics2D.translate(-d1, -d2);
              localJComponent.remove(this.i);
              this.i.remove(localComponent);
              b((JComponent)localComponent);
            }
          }
          else
          {
            b(paramld, paramGraphics2D);
          }
        }
      }
      if (bool3) {
        break label384;
      }
      b(paramld, paramGraphics2D);
      if (!bool2) {
        return;
      }
    }
    label384:
    b(paramld, paramGraphics2D);
  }
  
  private void a(JComponent paramJComponent)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramJComponent.isDoubleBuffered())
      {
        paramJComponent.putClientProperty("NodeCellRendererPainter.WAS_DOUBLE_BUFFERED", Boolean.TRUE);
        paramJComponent.setDoubleBuffered(false);
      }
    }
    int k = paramJComponent.getComponentCount() - 1;
    do
    {
      if (k < 0) {
        break;
      }
      Component localComponent = paramJComponent.getComponent(k);
      if (!bool2)
      {
        if ((localComponent instanceof JComponent)) {
          a((JComponent)localComponent);
        }
        k--;
      }
    } while (!bool1);
  }
  
  private void b(JComponent paramJComponent)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramJComponent.getClientProperty("NodeCellRendererPainter.WAS_DOUBLE_BUFFERED") == Boolean.TRUE)
      {
        paramJComponent.setDoubleBuffered(true);
        paramJComponent.putClientProperty("NodeCellRendererPainter.WAS_DOUBLE_BUFFERED", null);
      }
    }
    int k = paramJComponent.getComponentCount() - 1;
    do
    {
      if (k < 0) {
        break;
      }
      Component localComponent = paramJComponent.getComponent(k);
      if (!bool2)
      {
        if ((localComponent instanceof JComponent)) {
          b((JComponent)localComponent);
        }
        k--;
      }
    } while (!bool1);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.r

 * JD-Core Version:    0.7.0.1

 */